package com.moyun.finance.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List;

/**
 * 合同实体类
 */
@Entity
@Data
public class Contract {
    @Id
    private String id;

    private String companyId;//所属公司id

    private String contractId;//合同编号

    private String contractName;//合同名

    private int contractType;//合同类型 0:采购合同 1:销售合同

    private String customerId;//客户id

    private String projectsId;//项目id

    private String stages;//分期情况

    private String leadingId;//负责人id

    private String filePath;//附件路径

    private String signDate;//签订日期

    private String remark;//备注

    private int haveTax;//是否含税 0:含税  1:不含税

    private double taxMoney;//税额

    private String allTypeId;//子类别id

    @Transient
    private List<Receivables> receivables;//应收列表集合

    @Transient
    private List<ProductContractMid> productContractMids;//合同关联产品集合

    @Transient
    private Customer customer;//关联客户

    @Transient
    private Projects projects;//关联项目

    @Transient
    private OrgUser leadingUser;//合同签署负责人

}
